//
//  ZpNetWorkTool.h
//  WeiBo_OC
//
//  Created by MacBook Pro on 16/5/28.
//  Copyright © 2016年 MacBook Pro. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZpNetWorkInfo.h"
typedef enum method{
    POST,
    GET    
} HttpMethod;

typedef void (^FinshedNetWork)(NSData *data, NSError *errorre);
@interface ZpNetWorkTool : NSObject

@property (nonatomic, strong) ZpNetWorkInfo *info;
+ (instancetype)shareNetWorkTool;
- (void)sendHttpRequestWithMethod:(HttpMethod)method andParameters:(NSDictionary *)parameters andURLString:(NSString *)urlString andfinshed:(FinshedNetWork)finshed;
- (NSURLRequest *)OAuth_token;
@end
